import req from '@/utils/request'

// 电子签分页查询
export function getCustomerElectronicVisas(data) {
  return req.post(
    '/api/human/customer/electronicVisa/getCustomerElectronicVisas',
    data
  )
}

// 电子签单体查询
export function getCustomerElectronicVisa(data) {
  return req.get(
    '/api/human/customer/electronicVisa/getCustomerElectronicVisa',
    data
  )
}

// 添加电子签
export function saveCustomerElectronicVisa(data) {
  return req.post(
    '/api/human/customer/electronicVisa/saveCustomerElectronicVisa',
    data
  )
}

// 删除电子签
export function deleteCustomerElectronicVisa(data) {
  return req.delete(
    '/api/human/customer/electronicVisa/deleteCustomerElectronicVisa',
    { data }
  )
}

// 授权-查询可授权用户
export function getUsers(data) {
  return req.get('/api/human/customer/electronicVisa/getUsers', data)
}

// 授权-查询已授权用户
export function getAuthUsers(data) {
  return req.get('/api/human/customer/electronicVisa/getAuthUsers', data)
}

// 授权-授权用户
export function authUser(data) {
  return req.post('/api/human/customer/electronicVisa/authUser', data)
}

// 授权-授权用户
export function delAuthUser(data) {
  return req.delete('/api/human/customer/electronicVisa/delAuthUser', { data })
}

// 电子签审核-提交审核
export function submitAudit(data) {
  return req.put('/api/human/customer/electronicVisa/submitAudit', data)
}

// 电子签审核-审核通过
export function audit(data) {
  return req.put('/api/human/customer/electronicVisa/audit', data)
}
